gh-148770: Document quoting requirement for IMAP mailbox names with spaces#148785
gh-148770: Document quoting requirement for IMAP mailbox names with spaces#148785CodeLine9 wants to merge 2 commits into
Conversation
…with spaces
Add a note to IMAP4.select() documenting that mailbox names containing
spaces must be quoted by the caller, e.g. M.select('"my important mail"').
Documentation build overview
126 files changed ·
|
|
I took a look at this while reading through the neighboring The note seems accurate for current Given the related comment on #148770, I wonder whether this should be scoped only to So this PR looks useful as a targeted clarification, but maybe it should avoid sounding like |
The
IMAP4.select()docs don't mention that mailbox names containing spaces must be quoted by the caller. Since_command()sends arguments as-is (no auto-quoting), a call likeM.select('my important mail')sends the space-delimited name to the server, causing errors.Added a note to the
select()method documentation showing the correct usage:M.select('"my important mail"').Fixes #148770.
📚 Documentation preview 📚: https://cpython-previews--148785.org.readthedocs.build/